export const getters = {
  user: state => state.user.user.user,
  // this.$store.getters.user 获取user对象
  course: state => state.user.course.course,
  // this.$store.getters.course 获取course数组
  workId: state => state.user.workId.workId,
  // this.$store.getters.workId 获取workId
  courseId: state => state.userInfo.courseId.courseId
  // this.$store.getters.courseId 获取courseId
};
/*
this.user获取user对象

import { mapState } from "vuex";
methods:{
   computed:{
    ...mapState({user:state=>state.user.user.user}),
    }
}
*/